function [ elem_filters ] = tubeSettings( tube_select )
%% Library of tube settings for Spektr
%%
%% Purpose:
%% Allow users to specify inherent filtrations for different tubes that could
%% be used from the Spektr GUI

% Find the tube selected, filter the beam accordingly
Al_inherent = 1.6;

switch tube_select
    case 'DR'
        filters = [spektrElement2Z('Al'), 1.5 + 1.0];
    case 'Mobile-DR'
        filters = [spektrElement2Z('Al'), 1.0 + 1.2 + 1.0];
    case 'Portable-DR'
        filters = [spektrElement2Z('Al'), 0.6 + 0.9];
    case 'DSA'
        filters = [spektrElement2Z('Al'), 1.1 + 1.5];
    case 'MAMMO-Ag'
        filters = [spektrElement2Z('Al'), 0.02; spektrElement2Z('Be'), 0.63; spektrElement2Z('Ag'), 0.05];
    case 'MAMMO-Rh'
        filters = [spektrElement2Z('Al'), 0.02; spektrElement2Z('Be'), 0.63; spektrElement2Z('Rh'), 0.05];
    case 'None'
        filters = [spektrElement2Z('Al'), 0];
    otherwise   % Default
        filters = [spektrElement2Z('Al'), Al_inherent];
end

Al_index = filters(:, 1) == spektrElement2Z('Al');
filters(Al_index, 2) = filters(Al_index, 2) - Al_inherent;

elem_filters = filters;

end